import Vue from 'vue'
import App from './App'
import VueRouter from  'vue-router'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI);
Vue.use(VueRouter);
require('assets/less/base.less');
require('assets/less/phone.less');
var router   	 = new VueRouter({
  // history: true, //this config is to del anchor point like "#!"
  // saveScrollPosition: true
});//init
var viewPath 	 = './views/';//component src

router.map({
  '/':{
    name:'',
    component:require(viewPath+'home.vue')
  },
  '/article':{
    name:'article',
    component:require(viewPath+'article.vue')
  },
  '/lesson':{
    name:'lesson',
    component:require(viewPath+'lesson.vue')
  },
  '/articleInfo':{
    name:'articleInfo',
    component:require(viewPath+'articleInfo.vue')
  }

});
router.start(App,'#app');
